package com.lxy;

public class problem03 {
    public static void main(String[] args) {
        int j=0,i=0,count=0;
        for( i=1;i<=20000;i++){
            for( j=2;j<i;j++){
                if(i%j==0)
                {
                    break;
                }
            }
            if(i==j){
                System.out.print(i+" ");

                count++;
                if(count%5==0&&count!=0){
                    System.out.print("\n");
                }

            }
        }
    }
}
